<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-category_id" data-rule="required" data-source="student/course/category/index" class="form-control selectpage" name="row[category_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Semester_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-semester_name" data-rule="required" class="form-control" name="row[semester_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Semester_rule')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-semester_rule" class="form-control selectpicker" name="row[semester_rule]">
                {foreach name="semesterRuleList" item="vo"}
                    <option value="{$key}" {in name="key" value="day"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Week_range')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-week_range" class="form-control datetimerange" data-locale='{"format":"YYYY-MM-DD HH:mm:ss"}' name="row[week_range]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Total_lessons')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_lessons" class="form-control" name="row[total_lessons]" type="number">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
